﻿local BigSay={
	["%%S"]=function()
		return GetRaidTargetIndex("target") and "{".._G["RAID_TARGET_"..GetRaidTargetIndex("target")].."}" or ""
	end,
	["%%TT"]=function()
		return UnitName("targettarget") or ""
	end,
	["%%R"]=function()
		return UnitRace("target") or ""
	end,	
	["%%C"]=function()
		return UnitClass("target")~=UnitName("target") and UnitClass("target") or ""
	end,	
	["%%H"]=function()
		return UnitHealth("target").."/"..UnitHealthMax("target")
	end,	
	["%%M"]=function()
		return UnitMana("target").."/"..UnitManaMax("target")
	end,		
}
local oldSendChatMessage=SendChatMessage
SendChatMessage=function(arg1,...)
	for i,v in pairs(BigSay) do
		arg1=string.gsub(arg1,i,v() or "")
	end
	

oldSendChatMessage(arg1,...)
end